module.exports = {
    devServer: {
        port: 2020,
        inline: true
    },
    entry: './src/main.js',
    output: {
        filename: './dist/bundle.js'
    },
    resolve: {
      extensions: ['.js','.jsx']
    },
    module: {
        rules: [{
            test: /\.jsx?$/,
            exclude: /node_modules/,
            use: {
                loader: 'babel-loader',
                options: {
                    presets: ['env']
                }
            }
        }]
    }
}
